From: Richard M. Stallman Date: Fri, 28 May 1993 22:12:56 +0000 (+0000) Subject: Finish previous change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95838 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9a6015e8660fd1437dfe72f75a6b9ee6fcfb2a73;p=emacs.git Finish previous change. --- diff --git a/lisp/add-log.el b/lisp/add-log.el index 9b180566f70..cca58931a37 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el @@ -59,7 +59,9 @@ current buffer to the complete file name." (and buffer-file-name (let (temp (file buffer-file-name)) (while (setq temp (file-symlink-p file)) - (setq file temp)) + (setq file + (expand-file-name + temp (file-name-directory file)))) (file-name-directory file))) default-directory))) (if (and (eq file-name change-log-default-name) @@ -74,7 +76,8 @@ current buffer to the complete file name." ;; for several related directories. (let (temp) (while (setq temp (file-symlink-p file-name)) - (setq file-name temp))) + (setq file-name + (expand-file-name temp (file-name-directory file-name))))) (setq file-name (expand-file-name file-name)) ;; Move up in the dir hierarchy till we find a change log file. (let ((file1 file-name)